home *** CD-ROM | disk | FTP | other *** search
/ MacHack 2000 / MacHack 2000.toast / pc / The Hacks / Softshoe / Lisa's Mac Parts / Files / Directories / FileID.h < prev    next >
Text File  |  2000-06-23  |  386b  |  27 lines

  1. // FileID.h
  2.  
  3. #ifndef FileID_h
  4. #define FileID_h
  5.  
  6. #ifndef Integers_h
  7. #include "Integers.h"
  8. #endif
  9.  
  10. class FileID
  11.   {
  12.     private:
  13.         int32 id;
  14.             
  15.     public:
  16.         explicit FileID( int32 value )
  17.           : id( value )
  18.           {}
  19.     
  20.         int32 ID() const                                { return id; }
  21.         
  22.         bool operator==( FileID f ) const        { return id == f.id; }
  23.         bool operator!=( FileID f ) const        { return id != f.id; }
  24.   };
  25.  
  26. #endif
  27.